package com.sjzd.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sjzd.server.pojo.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sjzd
 * @since 2021-02-21
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    IPage<Employee> page(@Param("emp") Employee emp, @Param("beginDateScope") LocalDate[] beginDateScope,
                         @Param("page") Page<Employee> page);

    List<Employee> getEmployee(Integer id);
}
